package com.bjpowernode.springboot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {
    @Value("${username}")
    private String username;

    @Value("${password}")
    private String password;

    @ResponseBody
    @RequestMapping("/login")
    public String login() {
        return username + ":" + password;
    }
}
